package com.pw.ba.base.controller;

import com.pw.ba.base.service.UpdateGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/update")
public class UpdateGoodsController {

    @Autowired
    UpdateGoodsService updateGoodsService;

    @GetMapping("/goodsCollect")
    public void goodsCollect(int id , int collect_id){
        System.out.println(id);
        System.out.println(collect_id);
        int collect = Integer.valueOf(collect_id);
        updateGoodsService.updateCollect(id , collect);
        System.out.println("跟新成功");
    }

}
